package com.rustic.server.po;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
  import java.util.Date;
import lombok.Data;

/**
 * 表[food]对应实体类
 *
 * @author auto
 *
 */

@Data
@TableName(value = "`food`")
@ApiModel(value = "表food的实体类")
public class Food {

    /**
     * 自增ID
     */
    @ApiModelProperty(value = "自增ID", dataType = "Integer")
    @TableId(value="`id`",type = IdType.AUTO)
    private Integer id;

    /**
     * 关联乡村id
     */
    @ApiModelProperty(value = "关联乡村id", dataType = "int")
    @TableField("`rustic_id`")
    private int rusticId;

    /**
     * 美食名称
     */
    @ApiModelProperty(value = "美食名称", dataType = "String")
    @TableField("`name`")
    private String name;

    /**
     * 介绍
     */
    @ApiModelProperty(value = "介绍", dataType = "String")
    @TableField("`introduce`")
    private String introduce;

    /**
     * 封面
     */
    @ApiModelProperty(value = "封面", dataType = "String")
    @TableField("`cover`")
    private String cover;

    /**
     * 图片(轮播图)
     */
    @ApiModelProperty(value = "图片(轮播图)", dataType = "String")
    @TableField("`images`")
    private String images;

    /**
     * 分类id
     */
    @ApiModelProperty(value = "分类id", dataType = "int")
    @TableField("`category_id`")
    private int categoryId;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序", dataType = "int")
    @TableField("`sort`")
    private int sort;

    /**
     * 推荐餐厅,用逗号隔开
     */
    @ApiModelProperty(value = "推荐餐厅,用逗号隔开", dataType = "String")
    @TableField("`restaurant_ids`")
    private String restaurantIds;

    /**
     * 状态(1发布 2下架)
     */
    @ApiModelProperty(value = "状态(1发布 2下架)", dataType = "int")
    @TableField("`status`")
    private int status;

    /**
     * 创建人id
     */
    @ApiModelProperty(value = "创建人id", dataType = "int")
    @TableField(value = "`creator_id`", fill = FieldFill.INSERT)
    private int creatorId;

    /**
     * 修改人id
     */
    @ApiModelProperty(value = "修改人id", dataType = "int")
    @TableField(value = "`modifier_id`", fill = FieldFill.INSERT_UPDATE)
    private int modifierId;

    /**
     * 发布时间
     */
    @ApiModelProperty(value = "发布时间", dataType = "Date")
    @TableField("`publish_time`")
    private Date publishTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间", dataType = "Date")
    @TableField(value = "`update_time`", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", dataType = "Date")
    @TableField("`create_time`")
    private Date createTime;

    /**
     * 通用状态(2正常 3删除)
     */
    @ApiModelProperty(value = "通用状态(2正常 3删除)", dataType = "int")
    @TableField("`data_status`")
    @TableLogic(value = "2", delval = "3")
    private int dataStatus;

}
